import easydict


def create_opt(yolo_weights, strong_sort_weights,config_strongsort, project, source=0):
    opt = easydict.EasyDict({})
    opt.weights = yolo_weights
    opt.yolo_weights = yolo_weights
    opt.strong_sort_weights = strong_sort_weights
    opt.config_strongsort = config_strongsort
    opt.source = source
    # opt.imgsz = [64]
    opt.no_trace = True
    opt.img_size = 640        #int
    # opt.conf_thres = 0.5
    # opt.iou_thres = 0.5
    opt.conf_thres = 0.25  # confidence threshold
    opt.iou_thres = 0.45  # NMS IOU threshold

    opt.max_det = 1000
    opt.device = ""
    opt.show_vid = True
    opt.save_txt = True
    opt.save_conf = True
    opt.save_crop = True
    opt.save_vid = True
    opt.nosave = True
    opt.classes = None
    # opt.agnostic_nms = True
    opt.agnostic_nms = False  # class-agnostic NMS
    opt.augment = True
    opt.visualize = False
    opt.update = True
    opt.project = project
    opt.name = "exp"
    opt.exist_ok = True
    opt.line_thickness = 3
    opt.hide_labels = False
    opt.hide_conf = False
    opt.hide_class = False
    opt.half = True
    opt.dnn = True
    opt.view_img =False
    # opt.imgsz *= 2 if len(opt.imgsz) == 1 else 1  # expand
    # print(vars(opt))
    return opt
